<?php
/**
 * @package JFusion_Elgg
 * @author Arunoda Susiripala
 * @copyright Copyright (C) 2008 JFusion. All rights reserved.
 * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
 */

// no direct access
defined('_JEXEC' ) or die('Restricted access' );

/**
 * have basic functions of encrypting used in elgg
 */
function generateSalt(){
	$salt=substr(md5(microtime() . rand()), 0, 8);
	return $salt;
}

function generatePassword($pwdClr,$salt){
	$password_encoded=md5($pwdClr. $salt);
	return $password_encoded;
}

?>